package com.infowarelab.config.service.impl;

import java.util.List;
import java.util.Map;

import org.jradweb.core.orm.PageResult;

import com.infowarelab.config.service.AbstractServiceService;

import com.infowarelab.config.dao.ServiceDao;


import com.infowarelab.config.model.Service;

 
/**
 * Service Implement Class .
 * 
 * Created On Mon Aug 18 11:21:34 CST 2008
 * @author Code Generator
 * @version $Id: ServiceServiceImpl.java 139 2008-10-08 05:20:18Z wagzhi $
 */
public class ServiceServiceImpl extends AbstractServiceService{
	
		public Service getService(Integer id){
			return this.serviceDao.findById(id);
		}
		
		public List<Service> getAll(){
			return this.serviceDao.getAll();
		}
		
		public Service update(Service service){
			return  this.serviceDao.merge(service);
		}
		
		public void save(Service service){
			this.serviceDao.persist(service);
		}
		
		public void delete(Service service){
			this.serviceDao.delete(service);
		}
		
		public PageResult<Service> getPageResult(int pageNumber,int pageSize,String condition,Map<String,Object> params){
			return this.getServiceDao().getPageResult(pageNumber, pageSize, condition, params);
		}
}